package com.class3.team.fossilProject.serviceImpl;

import com.class3.team.fossilProject.Dao.BookDaoImp;
import com.class3.team.fossilProject.entity.Book;
import com.class3.team.fossilProject.service.TimeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public class TimeServiceImpl implements TimeService {
    @Autowired
    public BookDaoImp bookdao;

    @Override
    public List<Book> findByTime(Double start_year, Double end_year) {
        return this.bookdao.findByTime(start_year, end_year);
    }

    @Override
    public List<Book> searchForHeatmap() {
        return this.bookdao.searchForHeatmap();
    }

}

